package com.rising.face.lock.synchronize;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @Author: rising
 * @Description:
 * @Date: create in 2021/1/10 11:43
 */
public class SingletonTest {

    public static void main(String[] args) {
        for (int i = 0; i < 1000; i++) {
            new Thread(() -> {
                System.out.println(Thread.currentThread().getName() + "\tvalue=" +Singleton.getInstance().value);
            }, "AA" + i).start();
        }
    }

}
